<?php
        // remove the following lines when in production mode
        defined('YII_DEBUG') or define('YII_DEBUG',true);
        // specify how many levels of call stack should be shown in each log message
        defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

        // include Yii bootstrap file
        require(dirname(__FILE__) . '/../framework/YiiBase.php');

        class Yii extends YiiBase {
            /**
             * @static
             * @return CWebApplication
             */
            public static function app()
            {
                    return parent::app();
            }
        }
        $config=dirname(__FILE__).'/protected/config/main.php';

        error_reporting(E_ALL | E_STRICT);
        ini_set('display_errors', 1);

        // create a Web application instance and run
        Yii::createWebApplication($config)->run();

